@extends('system.frame_layout')
<?php $parent_menu = "购物商城"; $menu_selected = "购物中心";?>

@section('content')
    <div id="content-panel">
        <div class="row">
            <div class="col-xs-12">
                <div class="portlet light bordered">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-social-dribbble font-dark hide"></i>
                            <span class="caption-subject font-dark bold">购物中心 Shopping Center</span>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div class="row">
                            @foreach($products as $pro)
                                <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                    <div class="portlet light portlet-fit bordered">
                                        <div class="portlet-title">
                                            <div class="caption">
                                            <span class="caption-subject font-green bold" onclick="detailDlg('{{$pro->detail}}')" style="cursor: pointer;">
                                                {{$pro->title}}
                                            </span>
                                                <div class="caption-desc font-grey-cascade">
                                                    会员价：{{$pro->p1}}&nbsp;&nbsp;原价：<s>{{$pro->p2}}</s>
                                                </div>
                                            </div>
                                            <div class="add-cart"
                                                 onclick="cartDlg('{{$pro->no}}',{{$pro->unit}},true)">
                                                <i class="iconfont icon-cart"></i>
                                            </div>
                                        </div>
                                        <div class="portlet-body">
                                            <div class="mt-element-overlay">
                                                <div class="row">
                                                    <div class="col-md-12">
                                                        <div class="mt-overlay-1" onclick="detailDlg('{{$pro->detail}}')" style="cursor: pointer;">
                                                            <img src="{{asset('system/imgs/01.jpg')}}"/>
                                                            <div class="mt-overlay">
                                                                <div class="mt-info">
                                                                    点击查看商品详情
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            @endforeach
                        </div>
                        @include('system.coms.fenye')
                    </div>
                </div>
            </div>
        </div>
    </div>
    @include('system.coms.cart-dialog')
    @include('system.coms.good-detail-dialog')
@endsection

@section('footer')
@endsection